<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include.inc.jsp"%>
<script type="text/javascript" src="${server}/app/js/jedate.js"></script>
	<link id="jeDateSkin" type="text/css" rel="stylesheet" href="${server}/app/css/jedate.css">
	<script type="text/javascript" src="${server}/app/js/formatedate.js"></script>
<style type="text/css">
	th,td{
		text-align:left;
	}
</style>
<script type="text/javascript">
<!--

//-->
</script>
<div class="bjui-pageContent">
<form method="post" action="${path}/orders/save?stat=${stat}" class="pageForm" data-toggle="validate" data-reload-navtab="true">
	<input type="hidden" name="orders.id" value="${orders.id }"/>
	<div class="pageFormContent" data-layout-h="0">
    	<div class="suggestion">
        	<span class="sugicon"><span class="strong colorgorning2">当前操作提示：</span><span class="colorgorningage">请在以下窗口中输入用户信息</span></span>
        </div>
     	<table class="table table-condensed table-hover" width="100%">
          	<tbody>
               	<tr>
                  	<td>
                  		<label for="j_admin_update_pro_name" class="control-label x85">产品名称</label>
                  		<input type="text" data-rule="required" class="required" name="orders.pro_name" id="j_admin_update_pro_name" value="${orders.pro_name }">
                  	</td>
               	</tr>
                <tr>
                  	<td>
                  		<label for="j_admin_update_num" class="control-label x85">购买数量 </label>
                  		<input type="text" data-rule="required;number" class="required" name="orders.num" id="j_admin_update_num" value="${orders.num }">
                  	</td>
               	</tr>
               	<tr>
                  	<td>
                  		<label for="j_admin_update_price" class="control-label x85">价格</label>
                  		<input type="text" data-rule="required;number" class="required" name="orders.price" id="j_admin_update_price" value="${orders.price }">
                  	</td>
               	</tr>
               	<tr>
                  	<td>
                  		<label for="j_admin_update_name" class="control-label x85">姓名</label>
                  		<input type="text" data-rule="required" class="required" name="orders.name" id="j_admin_update_name" value="${orders.name }">
                  	</td>
               	</tr>
               	<tr>
                  	<td>
                  		<label for="j_admin_update_mobile" class="control-label x85">手机</label>
                  		<input type="text" data-rule="required;mobile" class="required" name="orders.mobile" id="j_admin_update_mobile" value="${orders.mobile }">
                  	</td>
               	</tr>
               	<tr>
                  	<td>
                  		<label for="j_admin_update_area" class="control-label x85">地区</label>
                  		<input type="text" name="orders.area" id="j_admin_update_area" value="${orders.area }">
                  	</td>
               	</tr>
               	<tr>
                   	<td colspan="2">
                   		<label for="j_admin_update_address" class="control-label x85">地址</label>
                   		<input type="text" data-rule="required" class="required"  name="orders.address" id="j_admin_update_address" value="${orders.address }" size="50">
                   	</td>
               	</tr>            
               	<tr>
                   	<td colspan="2">
                   		<label for="j_admin_update_remark" class="control-label x85">订单留言</label>
                       	<textarea maxlength="200" cols="50" rows="2" name="orders.remark" id="j_admin_update_remark" value="${orders.remark }" >${orders.remark }</textarea>
                   	</td>
               </tr>
               <tr>
                   	<td colspan="2">
                   		<label for="j_admin_update_order_number" class="control-label x85">快递单号</label>
                   		<input type="text"  name="orders.order_number" id="j_admin_update_order_number" value="${orders.order_number }" size="50">
                   	</td>
               	</tr>
               	<%-- <tr>
                  	<td>
                  		<label for="j_admin_update_pay_type" class="control-label x85">付款方式</label>
                  		<input type="radio" name="orders.pay_type" data-toggle="icheck" value="0" <c:if test="${orders.pay_type == 0}"> checked="checked" </c:if> data-rule="checked" data-label="货到付款&nbsp;&nbsp;">
                  	</td>
               	</tr> --%>
               	<input type="hidden" name="orders.pay_type" data-toggle="icheck" value="0"/>
               	<tr>
                  	<td>
                  		<label for="j_admin_update_create_date" class="control-label x85">创建日期</label>
                  		<input class="required" type="text" size="20" name="orders.create_date" id="create_date" value="${orders.create_date }"/>
                  		<%-- <input type="text" data-rule="required" class="required" name="orders.create_date" id="j_admin_update_create_date" value="${orders.create_date }"> --%>
                  	</td>
               	</tr>
               	<tr>
                  	<td>
                  		<label for="j_admin_update_source" class="control-label x85">订单来源</label>
                  		<input name="orders.source" id="j_admin_update_source" value="${orders.source }">
                  	</td>
               	</tr>
               	<tr>
                  	<td>
                  		<label for="j_admin_update_xian" class="control-label x85">客户类型</label>
              			<select name="orders.xian" id="j_admin_update_xian" data-toggle="selectpicker">
              				<option value="1" <c:if test="${orders.xian==1 }">selected = "selected"</c:if>>一线</option>
              				<option value="2" <c:if test="${orders.xian==2 }">selected = "selected"</c:if>>二线</option>
              				<option value="3" <c:if test="${orders.xian==3 }">selected = "selected"</c:if>>三线 </option>
              			</select>
                  	</td>
               	</tr>
               	<tr>
                  	<td>
                  		<label for="j_admin_update_state" class="control-label x85">订单状态</label>
              			<select name="orders.state" id="j_admin_update_state" data-toggle="selectpicker">
              				<option value="0" <c:if test="${orders.state==0 }">selected = "selected"</c:if>>待审核</option>
              				<option value="1" <c:if test="${orders.state==1 }">selected = "selected"</c:if>>待发货</option>
              				<option value="2" <c:if test="${orders.state==2 }">selected = "selected"</c:if>>已发货</option>
              				<option value="3" <c:if test="${orders.state==3 }">selected = "selected"</c:if>>已签收 </option>
              				<option value="4" <c:if test="${orders.state==4 }">selected = "selected"</c:if>>已回款</option>
              				<option value="5" <c:if test="${orders.state==5 }">selected = "selected"</c:if>>未审过</option>
              				<option value="6" <c:if test="${orders.state==6 }">selected = "selected"</c:if>>待联系</option>
              				<option value="7" <c:if test="${orders.state==7 }">selected = "selected"</c:if>>已拒收</option>
              			</select>
                  	</td>
               	</tr>
          </tbody>
       </table>
	</div>
	<div class="bjui-footBar" style="text-align: center;">
		<ul style="margin-left: 40%">
			<li style="float: left"><div class="buttonActive"><div class="buttonContent"><button  type="submit" class="btn-default" data-icon="edit" >确认保存</button></div></div></li>
			<li style="float: left"><div class="button"><div class="buttonContent"><button type="button" class="btn-close" data-icon="close" >取消保存</button></div></div></li>
		</ul>
	</div>
</form>
</div>
<script type="text/javascript">
	jeDate({
		dateCell:"#create_date",
		format:"YYYY-MM-DD hh:mm:ss",
		isinitVal:true,
		isTime:true,
		okfun:function(val){alert(val)}
	}); 
	
	
</script>